import Vue from 'vue'
import Router from 'vue-router'
// import Hello from '@/components/Hello'
import Footerr from '@/components/Footerr.vue'
import Myself from '@/components/Myself.vue'
import Index from '@/components/Index.vue'
import HomePage from '@/components/HomePage.vue'
import Shouji from '@/components/shouji.vue'
import Zhanghao from '@/components/zhanghao.vue'
import List from '@/components/List.vue'
import Detail from '@/components/Detail.vue'
import Order from '@/components/DetailList/Order'
import Evaluate from '@/components/DetailList/Evaluate'
// import Shops from '@/components/DetailList/Shops'

import Search from '@/components/Search.vue'
import Business from '@/components/DetailList/Business.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HomePage',
      component: HomePage
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },

    {
      path: '/list',
      name: 'List',
      component: List
    },
    {
      path: '/myself',
      name: 'myself',
      component: Myself,
      children: [
        {
          path: 'shouji',
          component: Shouji
        },
        {
          path: 'zhanghao',
          component: Zhanghao
        }
      ]
    },
    {
      path: '/detail',
      component: Detail,
      children: [
        {
          path: 'order',
          component: Order
        },
        {
          path: 'evaluate',
          component: Evaluate
        },
        {
          path: 'business',
          name: 'Business',
          component: Business
        }
      ]
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },

  ]
})
